package com.ruibang.glass.material.feign;

import com.ruibang.glass.common.domain.DictInfo;
import com.teaming.cloud.framework2.common.model.ResultBody;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient("glass-portal")
@Component
public interface PortalApi {
    @RequestMapping(value = "/api/dict/updateValueByCode",method = RequestMethod.POST)
    ResultBody updateValueByCode(@RequestBody DictInfo info);

    @RequestMapping(value = "/api/dict/getValueByCode/${code}",method = RequestMethod.GET)
    ResultBody<String> getValueByCode(@PathVariable("code") String code);
}
